class Ccnl < ActiveRecord::Base
  acts_as_paranoid unless SHOW_DELETED
  has_many :rapporti_di_lavoro, :dependent => :protect, :class_name => "RapportoDiLavoro"
  has_many :livelli_ccnl, :dependent => :protect, :class_name => "LivelloCcnl"
  has_many :note, :as => :nota_ref, :dependent => :protect
  has_many :allegati, :as => :allegato_ref, :dependent => :destroy
  validates_presence_of :name, :ore_settimanali, :ore_ferie_annuali
end
